const { redis } = require('./connect');

const KEY = 'G_graph'
function setGraph(graph, expires_in) {
  return redis.set(KEY, graph, 'EX', expires_in)
}

function getGraph() {
  return redis.get(KEY)
}

module.exports = {
  setGraph,
  getGraph,
}